package cn.lyq.card.ui.login

import cn.lyq.card.base.SimpleVM
import cn.lyq.card.utils.EncryptUtils

class LoginVM : SimpleVM() {

    fun login(phone: String, pwd: String) = simpleEmit {
        val pwdEncrypt = EncryptUtils.encryptPwd(pwd)
        repository.userService.login(phone, pwdEncrypt)
    }
}